import axios from 'axios';

const baseUrl = 'http://localhost:3000/orders';

export const fetchOrders = () => {
    return axios.get(baseUrl);
};

export const updateOrderStatus = (id, status) => {
    return axios.patch(`${baseUrl}/${id}`, { status });
};

export const deleteOrder = (id) => {
    return axios.delete(`${baseUrl}/${id}`);
};